
package com.scalar.chiptrack.operations.process.forms;

import org.apache.struts.upload.FormFile;

import com.scalar.chiptrack.ChipTrackActionForm;

/**
**
** Assembly form variables set and get Methods
**/

public class AssemblyForm extends ChipTrackActionForm {

    private String stepName = "Assembly";
    private String productName = "";
    private String packageID = "";
    private float standardUnitCost = 0.0f;
    private float targetYield = 0.0f;
    private float lotScrapYieldLimit = 0.0f;
    private String poFrequency = "";
    private String procedureDocNumber = null;
    private FormFile procedureDocFile= null;
    private String procedureDocFileName = null;
    private String markingSpec = "";
    private FormFile markingSpecFile = null;
    private String markingSpecFileName = null;
    private String bondingDiagramDocNumber = "";
    private FormFile bondingDiagramDocFile = null;
    private String bondingDiagramDocFileName = null;
    private String dateCodeMarked = "";
    private String comments = "";
    private int trackId = -1;
    private int processStepId = -1;
    private int previousStepId = -1;
    private int baseProductId = -1;
    private String m_baseProductName = null;
    
    //added by ravikanth on 18 Sep 2003
	private String [] dupProductName = new String[0];

    // added by hareesh on 25th July 2003;
    private String oldProductName ="";

    public AssemblyForm() {
    }

    public AssemblyForm (String packageID,
                          float standardUnitCost,
                          float targetYield,
                          float lotScrapYieldLimit,
                          String poFrequency,
                          String procedureDocNumber,
                          String procedureDocFileName,
                          String bondingDiagramDocNumber,
                          String bondingDiagramDocFileName,
                          String markingSpec,
                          String markingSpecFileName,
                          String dateCodeMarked,
                          String productName,
                          int baseProductId,
                          String stepName,
                          String comments,
                          int previousStepId) {

        this.packageID = packageID;
        this.standardUnitCost = standardUnitCost;
        this.targetYield = targetYield;
        this.lotScrapYieldLimit = lotScrapYieldLimit;
        this.poFrequency = poFrequency;
        this.procedureDocNumber = procedureDocNumber;
        this.procedureDocFileName = procedureDocFileName;
        this.bondingDiagramDocNumber = bondingDiagramDocNumber;
        this.bondingDiagramDocFileName = bondingDiagramDocFileName;
        this.markingSpec = markingSpec;
        this.markingSpecFileName = markingSpecFileName;
        this.dateCodeMarked = dateCodeMarked;
        this.productName = productName;
        this.baseProductId = baseProductId;
        this.stepName = stepName;
        this.comments = comments;
        this.previousStepId = previousStepId;

        // added by hareesh on 26th August 2003
        this.oldProductName = this.productName;
    }


    public int getBaseProductId() {
        return this.baseProductId;
    }
    public void setBaseProductId (int baseProductId) {
        this.baseProductId = baseProductId;
    }

    public int getPreviousStepId() {
        return this.previousStepId;
    }
    public void setPreviousStepId (int previousStepId) {
        this.previousStepId = previousStepId;
    }

    public int getProcessStepId() {
        return this.processStepId;
    }
    public void setProcessStepId (int processStepId) {
        this.processStepId = processStepId;
    }

    public int getTrackId() {
        return this.trackId;
    }
    public void setTrackId (int trackId) {
        this.trackId = trackId;
    }

    public String getBaseProductName() {
        return m_baseProductName;
    }
    public void setBaseProductName (String name) {
        m_baseProductName = name;
    }

    public String getStepName(){
            return stepName;
    }
    public void setProductName(String productName){
            this.productName = productName;
    }
    public String getProductName(){
            return productName;
    }

    public void setPackageID(String packageID){
            this.packageID = packageID;
    }
    public String getPackageID(){
            return packageID;
    }

    public void setStandardUnitCost(float standardUnitCost){
            this.standardUnitCost = standardUnitCost;
    }
    public float getStandardUnitCost(){
            return standardUnitCost;
    }

    public void setTargetYield(float targetYield){
            this.targetYield = targetYield;
    }
    public float getTargetYield(){
            return targetYield;
    }

    public void setLotScrapYieldLimit(float lotScrapYieldLimit){
            this.lotScrapYieldLimit = lotScrapYieldLimit;
    }
    public float getLotScrapYieldLimit(){
            return lotScrapYieldLimit;
    }

    public void setPoFrequency(String poFrequency){
            this.poFrequency = poFrequency;
    }
    public String getPoFrequency(){
            return poFrequency;
    }

    public void setProcedureDocNumber(String procedureDocNumber){
            this.procedureDocNumber = procedureDocNumber;
    }
    public String getProcedureDocNumber() {
            return procedureDocNumber;
    }

    public void setMarkingSpec(String markingSpec){
            this.markingSpec = markingSpec;
    }
    public String getMarkingSpec(){
            return markingSpec;
    }

    public void setBondingDiagramDocNumber(String bondingDiagramDocNumber){
            this.bondingDiagramDocNumber = bondingDiagramDocNumber;
    }
    public String getBondingDiagramDocNumber(){
            return bondingDiagramDocNumber;
    }

    public void setDateCodeMarked(String dateCodeMarked){
            this.dateCodeMarked = dateCodeMarked;
    }
    public String getDateCodeMarked(){
            return dateCodeMarked;
    }

    public void setComments(String comments){
            this.comments = comments;
    }
    public String getComments(){
            return comments;
    }

    public void setProcedureDocFile(FormFile procedureDocFile){
            this.procedureDocFile= procedureDocFile;
    }
    public FormFile getProcedureDocFile(){
            return procedureDocFile;
    }

    public void setMarkingSpecFile(FormFile markingSpecFile){
            this.markingSpecFile= markingSpecFile;
    }
    public FormFile getMarkingSpecFile(){
            return markingSpecFile;
    }

    public void setBondingDiagramDocFile(FormFile bondingDiagramDocFile){
            this.bondingDiagramDocFile= bondingDiagramDocFile;
    }
    public FormFile getBondingDiagramDocFile(){
            return bondingDiagramDocFile;
    }

    // added by hareesh on 25th August 2003
    // -- START --
    public void setOldProductName(String oldProductName){
            this.oldProductName = oldProductName;
    }
    public String getOldProductName(){
            return oldProductName;
    }
    // -- END --

    /**
     * @return
     */
    public String[] getDupProductName()
    {
        return dupProductName;
    }

    /**
     * @param strings
     */
    public void setDupProductName(String[] strings)
    {
        dupProductName = strings;
    }

}